<?php
namespace SYSTEM;

class Controller {
    
    public $view = null;

    public function __construct() {
        $this->view = new \SYSTEM\View();
    }
    
    public function __set($name, $value) {
        //TODO...
        die("cannot set property ".$name." = ".$value. " of undefined");
    }

    public function __call($name, $arguments) {
        //TODO...
        die("cannot call method ".$name."(".  implode(",", $arguments).") of undefined in ". get_called_class());
    }
}